package com.febs;

import com.febs.common.properties.FebsProperies;
import com.febs.security.properties.FebsSecurityProperties;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.social.autoconfigure.SocialWebAutoConfiguration;
import org.springframework.transaction.annotation.EnableTransactionManagement;

import java.time.LocalDate;
import java.time.LocalTime;

import lombok.extern.slf4j.Slf4j;

/**
 * @author zhongyj <1126834403@qq.com><br/>
 * @date 2021/6/18
 */
@Slf4j
@SpringBootApplication(exclude = {SocialWebAutoConfiguration.class})
@MapperScan({"com.febs.*.dao"})
@EnableConfigurationProperties({FebsSecurityProperties.class, FebsProperies.class})
@EnableCaching
@EnableAsync
@EnableTransactionManagement
public class FebsApplication {
    public static void main(String[] args) {
        SpringApplication.run(FebsApplication.class, args);
        log.info("《《《《《《 FEBS started up successfully at {} {} 》》》》》》", LocalDate.now(), LocalTime.now());
    }
}
